using System.Collections;
using System.Collections.Generic;
using UnityEngine;
namespace Main.Audio
{
    public class SoundItem : MonoBehaviour
    {
        [SerializeField] private AudioSource audioSource;

        public void SetSound(SoundDetails details)
        {
            audioSource.clip = details.soundClip;
            audioSource.volume = details.soundVolume;
            audioSource.pitch = Random.Range(details.soundPitchMin, details.soundPitchMax);
        }
    }
}